﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Validation;
using Microsoft.Practices.EnterpriseLibrary.Validation.Validators;

namespace DTO
{
    public class TUKHOATINHTHANHCollection : List<TUKHOATINHTHANH>
    { }
    public class TUKHOATINHTHANH
    {
        internal TINHTHANHCollection dsTINHTHANH;

        public TINHTHANHCollection DsTINHTHANH
        {
            get { return dsTINHTHANH; }
            set { dsTINHTHANH = value; }
        }

        private long MaTuKhoaTinhThanh;

        public long MATUKHOATINHTHANH
        {
            get { return MaTuKhoaTinhThanh; }
            set { MaTuKhoaTinhThanh = value; }
        }
        private String TuKhoaTinhThanh;
        [StringLengthValidator(1,500,MessageTemplate="Từ khóa tỉnh thành phải có ít nhất 1 ký tự")]
        public String TUKHOATT
        {
            get { return TuKhoaTinhThanh; }
            set { TuKhoaTinhThanh = value; }
        }
        private long MaTinhThanh;

        public long MATINHTHANH
        {
            get { return MaTinhThanh; }
            set { MaTinhThanh = value; }
        }
        public TUKHOATINHTHANH() { dsTINHTHANH = new TINHTHANHCollection(); }
    }
}
